﻿// ===============================================================================
// XCI.Parent 西安交通信息WinForm开发框架 2019 版权所有
// ===============================================================================

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraReports.UI;
using XCI.Sys.Controls;
using XCI.Windows.Controls;
using XCI.Windows.Forms;
using XCI.Windows.Helper;

namespace XCI.Sys.Forms
{
    public partial class FrmReportPreview : FrmBase
    {
        public FrmReportPreview()
        {
            InitializeComponent();
        }

        public void CreateDocument(XtraReportx report)
        {
            this.documentViewer1.PrintingSystem = report.PrintingSystem;
            report.CreateDocument(true);
        }

        //private void barButtonItemDesign_ItemClick(object sender, ItemClickEventArgs e)
        //{
        //    if (Reportx != null && Reportx.RObject != null)
        //    {
        //        Reportx.RObject.Design();
        //        Reportx.CreateDocument(true);
        //    }
        //}
    }
}